package me.sauce.bitcoinwallet.key.utils;

import android.content.Context;

import com.orhanobut.logger.Logger;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 * @author sauce
 * @since 2018/4/3
 */
public class AssetsUtils {
    public void getAssets(Context context) {

        try {
            InputStream inputStream = context.getAssets().open("chinese_simplified.txt");
            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
            String str;
            while ((str = bufferedReader.readLine()) != null) {
                Logger.d(str);
            }
            //close
            inputStream.close();
            bufferedReader.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
